package org.longgang.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * resume
 * @author 
 */
public class Resume implements Serializable {
    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 籍贯
     */
    private String nativeplace;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 学历
     */
    private String education;

    /**
     * 工作时间
     */
    private String workyear;

    /**
     * 电话
     */
    private String phone;

    /**
     * 身份证
     */
    private String idcard;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 现居城市
     */
    private String city;

    /**
     * 个人照片
     */
    private String personpic;

    /**
     * 个人简介
     */
    private String introduction;

    /**
     * 职位申请
     */
    private String positionapplied;

    /**
     * 期望城市
     */
    private String expectcity;

    /**
     * 期望薪资
     */
    private String expectsalary;

    /**
     * 附言
     */
    private String postscript;

    /**
     * 备用
     */
    private String b1;

    /**
     * 备用
     */
    private String b2;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userid;
    }

    public void setUserId(Integer userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getNativePlace() {
        return nativeplace;
    }

    public void setNativePlace(String nativeplace) {
        this.nativeplace = nativeplace;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getWorkYear() {
        return workyear;
    }

    public void setWorkYear(String workyear) {
        this.workyear = workyear;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idcard;
    }

    public void setIdCard(String idcard) {
        this.idcard = idcard;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPersonPic() {
        return personpic;
    }

    public void setPersonPic(String personpic) {
        this.personpic = personpic;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getPositionApplied() {
        return positionapplied;
    }

    public void setPositionApplied(String positionapplied) {
        this.positionapplied = positionapplied;
    }

    public String getExpectCity() {
        return expectcity;
    }

    public void setExpectCity(String expectcity) {
        this.expectcity = expectcity;
    }

    public String getExpectSalary() {
        return expectsalary;
    }

    public void setExpectSalary(String expectsalary) {
        this.expectsalary = expectsalary;
    }

    public String getPostscript() {
        return postscript;
    }

    public void setPostscript(String postscript) {
        this.postscript = postscript;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Resume other = (Resume) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getNativePlace() == null ? other.getNativePlace() == null : this.getNativePlace().equals(other.getNativePlace()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getEducation() == null ? other.getEducation() == null : this.getEducation().equals(other.getEducation()))
            && (this.getWorkYear() == null ? other.getWorkYear() == null : this.getWorkYear().equals(other.getWorkYear()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getPersonPic() == null ? other.getPersonPic() == null : this.getPersonPic().equals(other.getPersonPic()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getPositionApplied() == null ? other.getPositionApplied() == null : this.getPositionApplied().equals(other.getPositionApplied()))
            && (this.getExpectCity() == null ? other.getExpectCity() == null : this.getExpectCity().equals(other.getExpectCity()))
            && (this.getExpectSalary() == null ? other.getExpectSalary() == null : this.getExpectSalary().equals(other.getExpectSalary()))
            && (this.getPostscript() == null ? other.getPostscript() == null : this.getPostscript().equals(other.getPostscript()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getNativePlace() == null) ? 0 : getNativePlace().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getEducation() == null) ? 0 : getEducation().hashCode());
        result = prime * result + ((getWorkYear() == null) ? 0 : getWorkYear().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getPersonPic() == null) ? 0 : getPersonPic().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getPositionApplied() == null) ? 0 : getPositionApplied().hashCode());
        result = prime * result + ((getExpectCity() == null) ? 0 : getExpectCity().hashCode());
        result = prime * result + ((getExpectSalary() == null) ? 0 : getExpectSalary().hashCode());
        result = prime * result + ((getPostscript() == null) ? 0 : getPostscript().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userid=").append(userid);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", age=").append(age);
        sb.append(", nativeplace=").append(nativeplace);
        sb.append(", birthday=").append(birthday);
        sb.append(", education=").append(education);
        sb.append(", workyear=").append(workyear);
        sb.append(", phone=").append(phone);
        sb.append(", idcard=").append(idcard);
        sb.append(", email=").append(email);
        sb.append(", city=").append(city);
        sb.append(", personpic=").append(personpic);
        sb.append(", introduction=").append(introduction);
        sb.append(", positionapplied=").append(positionapplied);
        sb.append(", expectcity=").append(expectcity);
        sb.append(", expectsalary=").append(expectsalary);
        sb.append(", postscript=").append(postscript);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public Resume() {
		super();
	}

	public Resume(Integer userid) {
		super();
		this.userid = userid;
	}

	public Resume(Integer userid, String name, String sex, Integer age, String nativeplace, String birthday,
			String workyear, String phone, String idcard, String email, String city, String expectcity,
			String expectsalary, String postscript) {
		super();
		this.userid = userid;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.nativeplace = nativeplace;
		this.birthday = birthday;
		this.workyear = workyear;
		this.phone = phone;
		this.idcard = idcard;
		this.email = email;
		this.city = city;
		this.expectcity = expectcity;
		this.expectsalary = expectsalary;
		this.postscript = postscript;
	}
    
	
}